{% extends "base.html" %}

{% block headtitle %}Admin: Update Trip Spot{% endblock %}
{% block pagetitle %}Admin: Update Trip Spot{% endblock %}

{% block breadcrumbs %}
<ul class="breadcrumbs">
  <li><a href="{% url admin %}">Admin</a></li>
  <li><a href="{% url admin_tripspot_list year=obj.ski_season, trip_number=obj.trip_number %}">Trip Spot List for {{ obj.ski_season }} #{{ obj.trip_number}}</a>
</ul>
{% endblock %}

{% block content %}

<h2>Trip Spot</h2>
<table class="form">
<tr>
    <th>ID</th>
    <td>{{ obj.key.id }}</td>
</tr>
<tr>
    <th>Signup Date</th>
    <td>{{ obj.date_created }}</td>
</tr>
<tr>
    <th>Name</th>
    <td>{{ obj.trip_signup_info.first_name }} {{ obj.trip_signup_info.last_name }}</td>
</tr>
<tr>
    <th>Member Status</th>
    <td>{{ obj.trip_signup_info.membership }}</td>
</tr>
<tr>
    <th>Room</th>
    <td>{{ obj.room }}</td>
</tr>
<tr>
    <th>Is Paid?</th>
    <td>{{ obj.is_paid }}</td>
</tr>
<tr>
    <th>Signed Waiver?</th>
    <td>{{ obj.is_waiver }}</td>
</tr>
<tr>
    <th>Order</th>
    <td>{{ obj.trip_order.key.id }}</td>
</tr>
<tr>
    <th>Signup Info</th>
    <td>{{ obj.trip_signup_info.key.id }}</td>
</tr>
</table>

<h2>Trip Order</h2>
<table class="form">
<tr>
    <th>ID</th>
    <td>{{ obj.trip_order.key.id }}</td>
</tr>
<tr>
    <th>Billing First Name</th>
    <td>{{ obj.trip_order.billing_first_name }}</td>
</tr>
<tr>
    <th>Billing Last Name</th>
    <td>{{ obj.trip_order.billing_last_name }}</td>
</tr>
<tr>
    <th>Billing Email</th>
    <td>{{ obj.trip_order.billing_email }}</td>
</tr>
<tr>
    <th>Trips</th>
    <td>{{ obj.trip_order.trips }}{{ obj.trip_order.trips|join:"," }}</td>
</tr>
<tr>
    <th>Promo Code</th>
    <td>{{ obj.trip_order.promo_code }}</td>
</tr>
<tr>
    <th>Total</th>
    <td>{{ obj.trip_order.total }}</td>
</tr>
<tr>
    <th>Payment Method</th>
    <td>{{ obj.trip_order.pay_method }}</td>
</tr>
<tr>
    <th>Amount Paid</th>
    <td>{{ obj.trip_order.amount_paid }}</td>
</tr>
<tr>
    <th>Transaction Id</th>
    <td>{{ obj.trip_order.transaction_id }}</td>
</tr>
<tr>
    <th>Date</th>
    <td>{{ obj.trip_order.date_created }}</td>
</tr>
</table>

<h2>Trip Sign Up</h2>
<table class="form">
<tr>
    <th>ID</th>
    <td>{{ obj.trip_signup_info.key.id }}</td>
</tr>
<tr>
    <th>Date</th>
    <td>{{ obj.trip_signup_info.date_created }}</td>
</tr>
<tr>
    <th>First</th>
    <td>{{ obj.trip_signup_info.first_name }}</td>
</tr>
<tr>
    <th>Last</th>
    <td>{{ obj.trip_signup_info.last_name }}</td>
</tr>
<tr>
    <th>Email</th>
    <td>{{ obj.trip_signup_info.email }}</td>
</tr>
<tr>
    <th>Membership</th>
    <td>{{ obj.trip_signup_info.membership }}</td>
</tr>
<tr>
    <th>Pickup</th>
    <td>{{ obj.trip_signup_info.pickup }}</td>
</tr>
<tr>
    <th>Gender</th>
    <td>{{ obj.trip_signup_info.gender }}</td>
</tr>
<tr>
    <th>Roommate</th>
    <td>{{ obj.trip_signup_info.roommate }}</td>
</tr>
<tr>
    <th>Bedding</th>
    <td>{{ obj.trip_signup_info.bedding }}</td>
</tr>
<tr>
    <th>Flags</th>
    <td>
        {% if obj.trip_signup_info.is_front_bus %} front {% else %} back {% endif %}
        {% if obj.trip_signup_info.is_senior %} senior {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_smoker %} smoker {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_lesson %} lesson {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_beginner %} beginner {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_first_bus %} first_bus_trip {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_snack %} snack {% else %} - {% endif %}
        {% if obj.trip_signup_info.is_vege %} vegetarian {% else %} - {% endif %}

        
    </td>
</tr>
</table>


{% endblock %}
